using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content.Pipeline;
using Microsoft.Xna.Framework.Content.Pipeline.Graphics;
using Microsoft.Xna.Framework.Content.Pipeline.Processors;
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;

namespace HadronData
{
    [ContentTypeWriter]
    public class EntityMarkerContentTypeWriter : ContentTypeWriter<EntityMarker>
    {
        protected override void Write(ContentWriter p_contentWriter, EntityMarker p_entityMarker)
        {
            p_contentWriter.Write(p_entityMarker.Name);
            p_contentWriter.WriteObject<EntityType>(p_entityMarker.EntityType);
            p_contentWriter.Write(p_entityMarker.Position);
            p_contentWriter.Write(p_entityMarker.Orientation);
        }

        public override string GetRuntimeReader(TargetPlatform targetPlatform)
        {
            return typeof(EntityMarkerContentTypeReader).AssemblyQualifiedName;
        }
    }
}
